package Holle;

import java.util.Scanner;

public class 五位数 {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入五位数为：");
		int number = in.nextInt();
		int a = number % 10;
		int b = number / 10 % 10;
		int c = number / 100 % 10;
		int d = number / 1000 % 10;
		int e = number / 10000 % 10;
		int f = a + b + c + d + e;
		System.out.println("每位数字之和为" + f);
	}

}
